/**
 * @projectName study_java
 * @package Factory.abstractFactory
 * @className Factory.abstractFactory.RealFactory
 */
package Factory.abstractFactory;

import Factory.Dog;
import Factory.IAnimal;

/**
 * RealFactory
 * @description 真实产品工厂类
 * @author answer_wx
 * @date 2022/6/29 16:38
 * @version 1.0
 */
public class RealFactory extends AbstractFactory {
    @Override
    public IFood createFood() {
        return new Water();
    }

    @Override
    public IAnimal createAnimal() {
        return new Dog();
    }

    @Override
    public ITraffic createTraffic() {
        return new Horse();
    }
}